#define _CRT_SECURE_NO_WARNINGS 1
#include "Stack.h"
int main()
{
	stack st;
	StackInit(&st);
	StackPush(&st,1);
	StackPush(&st,2);
	StackPush(&st,3);
	StackPush(&st,4);
	StackPush(&st,5);
	StackPush(&st,6);
	printf("%d\n", StackSize(&st));
	while (!StackEmpty(&st))
	{
		printf("%d ", StackTop(&st));
		StackPop(&st);
	}
	//teststack();
	printf("\n");
	
	StackDestory(&st);
	return 0;
}